package logger

import (
	"os"
)

type TargetStdout struct {
	Level Level
}

func (t *TargetStdout) IgnoreCheck(ctx *Context) bool {
	return ctx.Level() < t.Level
}

func (t *TargetStdout) Print(ctx *Context) {
	os.Stdout.Write(ctx.buffer.Bytes())
}
